// UeDbElbow.cpp: implementation of the UeDbElbow class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "UeDbElbow.h"

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

IMPLEMENT_DYNAMIC(UeDbElbow, UeDbElbowIndex)

UeDbElbow::UeDbElbow()
{
	m_dbDW = 0.0;
	m_dbAngle = 0.0;
	m_dbWeight = 0.0;
	m_dbElbowThick = 0.0;
	m_dbElbowRadius = 0.0;
	m_dbElbowStraightLength = 0.0;
}

UeDbElbow::~UeDbElbow()
{

}

const UeDbElbow& UeDbElbow::operator=(const UeDbElbow& elbow)
{
	if(this != &elbow)
	{
		setDN(elbow.getDN());
		setDW(elbow.getDW());
		setID(elbow.getID());
		setSCH(elbow.getSCH());
		setKey(elbow.getKey());
		setName(elbow.getName());
		setNote(elbow.getNote());
		setAngle(elbow.getAngle());
		setCATNO(elbow.getCATNO());
		setStyle(elbow.getStyle());
		setRating(elbow.getRating());
		setWeight(elbow.getWeight());
		setEndType(elbow.getEndType());
		setFactory(elbow.getFactory());
		setPressure(elbow.getPressure());
		setStandard(elbow.getStandard());
		setLinkWise(elbow.getLinkWise());
		setMaterial(elbow.getMaterial());
		setElbowThick(elbow.getElbowThick());
		setTemperature(elbow.getTemperature());
		setElbowRadius(elbow.getElbowRadius());
		setStraightLength(elbow.getStraightLenght());
	}

	return *this;
}